/**
 * NewsCatalogService.java
 * 2008-3-13
 * @author 屈甲康qujiakang@gmail.com
 */
package org.jackysoft.service;

import java.util.Collection;
import java.util.Map;

import org.jackysoft.data.IDataProvider;
import org.jackysoft.entity.nosql.NewsCatalog;
import org.jackysoft.google.collection.ZTreeNode;
import org.springframework.dao.DataAccessException;

/**
 * @author Administrator
 * 
 */
public interface NewsCatalogService extends IDataProvider<String,NewsCatalog>{
	
	Collection<NewsCatalog> getsByParent(String parent) throws DataAccessException;
	/**
	 * 
	 * @return 园地映射
	 * 园地名称->ID
	 * */
	Map<String,String> tops() throws DataAccessException;
	
	String tops(String name) throws DataAccessException;
	
	boolean isParent(String sid);
	
	/**
	 * 生成导航菜单
	 * @param 父
	 * @return 菜单html
	 * */
	String topMenus(String sid,String firstChildId) throws DataAccessException;
	String getDefaultChildId(String sid) throws DataAccessException;
	/**
	 * 根据sid获取一个分类对象及其子对象
	 * */
	NewsCatalog getBySid(String sid) throws DataAccessException;
	
	Collection<ZTreeNode> getsZtreeNodes(String parentSid) throws DataAccessException; 
}
